package ${package_pojo};
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;

import static io.swagger.v3.oas.annotations.media.Schema.AccessMode.READ_ONLY;
<#list typeSet as set>
import ${set};
</#list>

<#if swagger==true>
@Schema(name = "${Table}")
</#if>
@Data
public class ${Table} implements Serializable{

<#list models as model>
	<#if model.column == "version">
    @Schema(description = "${model.desc!""}",accessMode = READ_ONLY)
    @Version
    <#elseif model.id==true>
    @TableId(value = "${model.column}",type = IdType.ASSIGN_ID)
    @Schema(description = "${model.desc!""}",accessMode = READ_ONLY,required = true)
	<#elseif model.column == "gmt_create">
    @Schema(description = "${model.desc!""}",accessMode = READ_ONLY)
    @TableField(value = "${model.column}",fill = FieldFill.INSERT)
	<#elseif model.column == "gmt_modified">
    @Schema(description = "${model.desc!""}",accessMode = READ_ONLY)
    @TableField(value = "${model.column}",fill = FieldFill.INSERT_UPDATE)
	<#elseif model.column == "deleted">
    @Schema(description = "${model.desc!""}",accessMode = READ_ONLY)
    @TableLogic
    <#elseif model.isNullAble == 'NO'>
    @Schema(description = "${model.desc!""}",required = true)
    @TableField("${model.column}")
    <#else>
    @Schema(description = "${model.desc!""}")
    @TableField("${model.column}")
    </#if>
	private ${model.simpleType} ${model.name};//${model.desc!""}

</#list>

}

